package com.easy.frame.servers.sys.mapping;

import com.easy.frame.servers.sys.dto.SysStaffDTO;
import com.easy.frame.servers.sys.entity.SysStaff;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.factory.Mappers;

/**
 * @Author msp
 * @Date 2021/5/8
 */
@Mapper(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
        nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface SysStaffMapping {

    SysStaffMapping INSTANCE = Mappers.getMapper(SysStaffMapping.class);

    SysStaff dto2po(SysStaffDTO dto);
}
